package com.mxpio.webapp.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 服务器平均负载表
 *
 * @author: Cheng
 * @date: 2022/10/31
 */

@Entity
@Table(name = "MI_MONITOR_SERVER_LOAD_AVERAGE")
@Schema(description = "服务器平均负载表")
@Data
@ToString
public class MonitorServerLoadAverage extends BaseEntity {

    @Id
    @Generator
    @Schema(description = "主键ID")
    @Column(name = "ID", length = 64)
    private String id;

    @Schema(description = "IP地址")
    @Column(name = "IP")
    private String ip;

    @Schema(description = "1分钟负载平均值")
    @Column(name = "ONE")
    private Double one;

    @Schema(description = "5分钟负载平均值")
    @Column(name = "FIVE")
    private Double five;

    @Schema(description = "15分钟负载平均值")
    @Column(name = "FIFTEEN")
    private Double fifteen;

    @Schema(description = "CPU逻辑核数量")
    @Column(name = "LOGICAL_PROCESSOR_COUNT")
    private Integer logicalProcessorCount;
}
